import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/Layout.vue')
}

export default [
  {
    path: '/dashboard',
    component: Layout,
    redirect: '/dashboard/index',
    meta: {
      title: '仪表板',
      icon: 'i-mage:dashboard-bar-notification',
    },
    children: [
      {
        path: 'index',
        component: () => import('@/views/visual/dashboard/Dashboard.vue'),
        children: [],
        meta: {
          breadcrumb: false,
          activeMenu: '/dashboard',
          menu: false,
          title: '仪表板',
        },
      },
    ],
  },
  {
    path: '/dashboard/edit/:dashboardId',
    component: () => import('@/views/visual/dashboard/DesignSpace.vue'),
    meta: {
      breadcrumb: false,
      menu: false,
      title: '编辑仪表板',
    },
    children: [],
  },
] satisfies RouteRecordRaw[]
